package com.sias.oj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 帖子点赞
 *
 * @author <a href="https://github.com/sogra">程序员sogra</a>
 */
@TableName(value = "post_thumb")
@Data
public class PostThumb implements Serializable {

  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
  /**
   * id
   */
  @TableId(type = IdType.AUTO)
  private Long id;
  /**
   * 帖子 id
   */
  private Long postId;
  /**
   * 创建用户 id
   */
  private Long userId;
  /**
   * 创建时间
   */
  private Date createTime;
  /**
   * 更新时间
   */
  private Date updateTime;
}